---
title: Memcached plugin - PHP Fatal error
author: notabug.org/aab
time: Fri, 23 Aug 2019 13:11:04 UTC
status: closed
---

author: notabug.org
time: Fri, 23 Aug 2019 13:11:04 UTC
content: -----
Memcached config in config.php: addPlugin('Memcached', [ 'servers' => ['127.0.0.1', 11211], 'defaultExpiry' => 86400 // 24h ]); Memcached and php-memchached installed. The error appears when executing startdaemons. Log: PHP Fatal error: Uncaught Error: Call to undefined method Memcached::close() in /var/www/html/plugins/Memcached/MemcachedPlugin.php:202 Stack trace: #0 /var/www/html/lib/event.php(89): MemcachedPlugin->onStartCacheReconnect(false) #1 /var/www/html/lib/cache.php(273): Event::handle('StartCacheRecon...', Array) #2 /var/www/html/lib/spawningdaemon.php(209): Cache->reconnect() #3 /var/www/html/lib/spawningdaemon.php(188): SpawningDaemon->resetDb() #4 /var/www/html/lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(3) #5 /var/www/html/lib/daemon.php(168): SpawningDaemon->run() #6 /var/www/html/scripts/queuedaemon.php(186): Daemon->runOnce() #7 {main} thrown in /var/www/html/plugins/Memcached/MemcachedPlugin.php on line 202
-----
